package ywpt.service.work;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.SysMsgInfo;

public interface SysMsgInfoService {

	public abstract SysMsgInfo getSysMsgInfoById(Long id);

	public abstract int getSysMsgInfoCountByCriteria(DetachedCriteria query);

	public abstract List<SysMsgInfo> getConferenceInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract void saveSysMsgInfo(SysMsgInfo sysMsgInfo, Long msgTypeId, Long invalidTypeId, String[] orgId, String[] recive);

	public abstract void updateSysMsgInfo(SysMsgInfo sysMsgInfo, Long msgTypeId, Long invalidTypeId,String[] orgId, String[] recive);

	public abstract List<SysMsgInfo> getSysMsgInfos(DetachedCriteria query);

	public abstract void saveSysMsgInfo(SysMsgInfo sysMsgInfo);

	public abstract void invalidMsg(int businessType, Long businessId);
	
	public abstract List<SysMsgInfo> getMsgs(int businessType, Long businessId);

}
